package com.mobclick.android;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;

class g extends Thread
{
  public void run()
  {
    SharedPreferences localSharedPreferences;
    try
    {
      localSharedPreferences = MobclickAgent.a(this.a);
      if ((this.b < 0) || (this.b > 200))
        if (UmengConstants.testMode)
          Log.i("MobclickAgent", "not a valid age!");
      else
        localSharedPreferences.edit().putInt("age", this.b).commit();
    }
    catch (Exception localException)
    {
      if (UmengConstants.testMode)
      {
        localException.printStackTrace();
        Log.i("MobclickAgent", localException.getMessage());
      }
    }
  }
}